package javango.polls;

import java.util.ArrayList;
import java.util.List;

import javango.contrib.compat.RegUrl;
import javango.contrib.compat.SubappUrl;
import javango.core.Url;

public class Urls implements javango.core.Urls {
	List<Url> l = new ArrayList<Url>();

	public Urls() {
		l.add(new RegUrl("^$", Views.class, "index"));
	    l.add(new RegUrl("^(\\d+)/$", Views.class, "detail"));
	    l.add(new RegUrl("^(\\d+)/results/$", Views.class, "results"));
	    l.add(new RegUrl("^(\\d+)/vote/$", Views.class, "vote"));
	    l.add(new SubappUrl("^admin/", javango.contrib.admin.Urls.class));
	}
	
	public List<Url> getUrlPatterns() {
		return l;
	}

}
